unitialized variable
authorAntoine Musso <hashar@users.mediawiki.org>
Sun, 4 Dec 2005 14:49:26 +0000 (14:49 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Sun, 4 Dec 2005 14:49:26 +0000 (14:49 +0000)
config/index.php

index 2f6b992..21207d5 100644 (file)
@@ -1328,6 +1328,7 @@ function getLanguageList() {
 
        $d = opendir( "../languages" );
        while( false !== ($f = readdir( $d ) ) ) {
+               $m = array();
                if( preg_match( '/Language([A-Z][a-z_]+)\.php$/', $f, $m ) ) {
                        $code = str_replace( '_', '-', strtolower( $m[1] ) );
                        if( isset( $wgLanguageNames[$code] ) ) {